import rxAjax from '@/assets/js/ajax.js';

const BpmTaskCommuApi = {
  baseUrl: '/api-bpm/bpm/core/bpmTaskCommu'
}


/**
 * 获取单记录
 * @param pkId
 * @returns {*}
 */
BpmTaskCommuApi.get = function(pkId) {
  let url =  BpmTaskCommuApi.baseUrl + '/get?pkId=' + pkId;
  return rxAjax.get(url);
}

BpmTaskCommuApi.save =function(parameter) {
  let url=BpmTaskCommuApi.baseUrl+ '/save';
  return rxAjax.postJson(url,parameter);
}

BpmTaskCommuApi.getAllCommus=function(parameter){
  let url=BpmTaskCommuApi.baseUrl+ '/getAllCommus';
  return rxAjax.postJson(url,parameter);
}


BpmTaskCommuApi.withdraw=function(parameter){
    let url=BpmTaskCommuApi.baseUrl+ '/withdraw';
    return rxAjax.postJson(url,parameter);
}

export default  BpmTaskCommuApi;


